export default {
  items: Object.freeze([
    [{ label: '用户名', key: 'account', type: 'text' }],
    [{ label: '密码', key: 'password', type: 'password' }],
    [{ label: '确认密码', key: 'confirmPwd', type: 'password' }],
    [
      {
        colspan: 8,
        type: 'radio',
        label: '权限分配',
        key: 'role_id',
        value: '2',
        radios: [
          { label: '2', title: '销售人员' },
          { label: '1', title: '初审人员' },
        ],
      },
    ],
  ]),
  rules: {
    username: [{ required: true, message: '必须输入用户名' }],
    password: [{ required: true, message: '必须输入密码' }],
    confirmPwd: [
      { trigger: 'blur' },
      { required: true, message: '必须输入确认密码' },
    ],
    permission: [{ required: true }],
  },
}
